package cnhy.salary.domain;

import cnhy.salary.domain.proxy.OvertimeRecordProxy;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import com.easy.query.core.annotation.*;
import ling.common.domain.entity.*;
import org.apache.poi.hpsf.Decimal;

/**
 * 加班记录;
 * @author : He-LiangLiang@Outlook.com
 * @date : 2025-5-26
 */
@ApiModel(value = "加班记录",description = "")
@EntityProxy
@Table("pay_overtime_record")
@Data
public class OvertimeRecord extends CreatedEntity.LongId implements Serializable,Cloneable, ProxyEntityAvailable<OvertimeRecord , OvertimeRecordProxy> {
    /**  */
    /*
    @Column(primaryKey = true)
    @ApiModelProperty(value = "",notes = "")
    private Long id ;
    */
    
    /**  */
    @ApiModelProperty(value = "",notes = "")
    private Long userId ;
     
   
    /**  */
    @Excel(name = "员工名称")
    @ApiModelProperty(value = "员工名称",notes = "")
    @EasyWhereCondition
    private String userName ;



     @ApiModelProperty(value = "班组id",notes = "")
     @EasyWhereCondition(type = EasyWhereCondition.Condition.EQUAL)
    Long Lv2Id;
     @Excel(name = "班组名称")
     @ApiModelProperty(value = "班组名称",notes = "")
     @EasyWhereCondition
    String lv2Name;

    /** 加班原因 */
    @Excel(name = "加班原因")
    @ApiModelProperty(value = "加班原因",notes = "")
    private String remark ;
     
   
    /**  */
    @Excel(name = "时间",dateFormat ="yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "",notes = "")
    @EasyWhereCondition(type = EasyWhereCondition.Condition.EQUAL)
    private Date beginTime ;
     
   
    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "",notes = "")
    private Date endTime ;
     
   
    /** 加班时长，小时 */
    @Excel(name = "加班时长(分钟)")
    @ApiModelProperty(value = "加班时长，分钟",notes = "")
    private Double duration ;
     
   
    /** 附件 */
    @ApiModelProperty(value = "附件",notes = "")
    private String attachment ;

    /** 加班费 */
    @Excel(name = "加班费")
    @ApiModelProperty(value = "加班费",notes = "")
    private Double overtimePay;
   

}